include $(TOPDIR)/rules.mk

PKG_NAME:=keevi
PKG_VERSION:=1.0.2
PKG_RELEASE:=3

include $(INCLUDE_DIR)/package.mk

define Package/keevi
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Router web interface integration framework
  DEPENDS:=+mini_inetd +in.www +lua
endef

define Package/keevi/description
  Router web interface integration framework
endef

define Build/Prepare
endef

define Build/Compile
endef

define Package/keevi/preinst
#!/bin/sh

cp -r /web /media/DISK_A1/system
endef

define Package/keevi/postinst
#!/bin/sh

/media/DISK_A1/system/etc/init.d/S10keevi stop
/media/DISK_A1/system/etc/init.d/S10keevi start
endef


define Package/keevi/prerm
#!/bin/sh

/media/DISK_A1/system/etc/init.d/S10keevi stop
endef

$(eval $(call BuildPackage,keevi))
